package cn.lidongyu.basic;

import lombok.Data;

@Data
public class AjaxResult {
    private String message = "操作成功";
    private Boolean success = true;
    private String Code="200";

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return  this ;
    } public AjaxResult setCode(String code) {
        this.Code = code;
        return  this ;
    }
    public static AjaxResult me(){
        return new AjaxResult();
    }
}
